package QQ;

public class QQ {
    String name,account;
    int days;

    public void dengji(int days){
        this.days=days;
        int a=0,b=0,c=0;
        a=days/(100*3*3);
       b=(days-100*3*3*a)/(100*3);
        System.out.println("当前QQ号:"+account);
        c=days%300/100;
        if (a>0)
            System.out.println("有："+a+"个皇冠");
        if(b>0)
            System.out.println(b+"个太阳");
        if (c>0)
            System.out.println(c+"个星星");
        show();
    }
    public void show(){
        System.out.println("账号:"+account+"\n昵称："+name);
    }

}
